﻿using System;
using System.Collections.Generic;
using EconomicInformationServiceWcf;
using Interfaces.Criteria;
using Interfaces.Filters;
using Interfaces.Models;
using Interfaces.Providers;
using Microsoft.Practices.Unity;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using YQLDataProvider;

namespace ServiceInfrastructureUnitTests
{
    [TestClass]
    public class EisBootstrapperTets
    {
        [TestMethod]
        public void BootModulesTets()
        {
            var bootstrapper = new EisBootstrapper();
            bootstrapper.Run(true);
            
            Assert.IsNotNull(bootstrapper.Container);

            var factory = bootstrapper.Container.Resolve<ISettingsFactory>();

            Assert.IsNotNull(factory);

            var industryProvider = bootstrapper.Container.Resolve<IEconomicDataProvider<IEnumerable<IIndustrySector>, ISectorsFilter, IBaseCriteria>>();

            Assert.IsNotNull(industryProvider);
        }
    }
}
